/**
 * Created by ztt on 2018/12/3.
 */
import { of } from 'rxjs';
const source = of('demo value');
source.subscribe(value => {
    console.log('index2.ts：',value);
});

import { map } from 'rxjs/operators';
const source2=of([1,2,3]).pipe(map(x => x + '!!!'));
source2.subscribe(value => {
    console.log('index2.ts(source2)：',value);
});